package org.xfy.ymcc.feign;

import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.xfy.common.result.JsonResult;
import org.xfy.ymcc.feign.fallback.MediaFeignClientFallbackFactory;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallbackFactory.class)
public interface MediaFeignClient {
    @PostMapping("/mediaFile/getMediaFileByChapterId")
    JsonResult getMediaFileByChapterId(@RequestBody Long ChapterId);
}
